package com.yt.system.service;

import com.yt.system.domain.Clock;
import com.yt.system.domain.Vacate;

import java.text.ParseException;
import java.util.List;

public interface ClockService {

    int clockIn(Integer uid);

    int clockOut(Integer uid) throws ParseException;

    List<Clock> findAllByClock(Clock clock);

    List<Clock> findAllClockOrName(String name);

    List<Clock> findAllClockByUid(Integer uid);

    int updateLeaveTime(String leave_time);

    int insertClock(Clock clock);

    int deleteClock(Integer cid);

    int updateClock(Clock clock);
}
